#!/bin/bash
# Do not call this script from console. It is intented to be called from java runtime. Please use command 'treex'.
eval `perl -I ~/perl5/lib/perl5 -Mlocal::lib`
export PATH="$HOME/treex/bin:$PATH"
export PERL5LIB="$HOME/treex/lib:$HOME/treex/oldlib:$PERL5LIB"
export TMT_ROOT=$HOME/.treex

cat $1 | treex -Lcs  Read::Text W2A::CS::Segment use_lines=1 W2A::CS::Tokenize W2A::CS::TagMorce W2A::CS::ParseMSTAdapted Write::CoNLLX to=$2
